home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / info-sys / www / tkhtml-2.3 / tkhtml-2 / tkHTML-2.3 / README.entities < prev    next >
Encoding:
Text File  |  1995-02-06  |  1.5 KB  |  38 lines

  1. Defining entities
  2.  
  3. To define your own entities you can call the procedure 'defentities'
  4. in your config.tcl (for global defs) or ~/.tkHTML (personal defs)
  5.  
  6. The procedure has the following parameters:
  7.  
  8. defentities name iso key ent esc1 esc2 text {spon 1} {eson 1}
  9.  
  10. name : any name you like...
  11.        see entities.tcl for names already used 
  12.        ( they may be longer than two chars... )
  13. iso  : the character you want to get finally on screen, it's the character
  14.        typed on special national keyboards. How to get it???
  15.        Type the entity in tkHTML by hand, preview it, cut and paste it...
  16.        or use its octal number (it's safer...), e.g. \344 for a-umlaut
  17.        (you can do first cut & paste into a file described above
  18.        and view it with 'od -c' to get the numbers...)
  19.  
  20. key  : its name in X11 (keysym) look in your X-Reference-Manual, local
  21.        keysym-tables... for ideas
  22. ent  : its HTML-entity
  23. esc1 : number of escape character 0=" 1=' 2=`, you may define more...
  24. esc2 : the character typed after escape character
  25. text : any text for menu-entry
  26. spon : change typed special char to entity, if true (1) do nothing if false (0)
  27. eson : change escaped char to entity, if it is true (1) do nothing if false (0)
  28.  
  29. if you want to add an escape character, you have to include the lines:
  30.  
  31. # all escape characters
  32. set esclist    [ list "\""     "'" "`" ]
  33. set nesc [ llength $esclist ]
  34. # what to do for doubled escape characters ( typing "" -> " )
  35. set escesclist [ list """ "'" "`" ]
  36.  
  37. and append your escape character there...
  38.